// Learn TypeScript:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html
//  - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property} = cc._decorator;

@ccclass
export default class GameData extends cc.Component {

    static _instance: GameData;
    static get Instance() {
        return this._instance || (this._instance = new GameData());
    }
    // onLoad () {}

huizheng:boolean = false

//speed
speed:number = 800

    windowheigh:any

    windowwidth:any

    title:string = "听说你QQ飞车玩的挺厉害的，敢不敢来秋名山一战？"
    image:string = "http://laonaxingluo.gitee.io/shaiche/timg.jpg"


//游戏是否结束
    over:boolean = false

    rotation:boolean = true

    guanka:number = 0

    //是否转过
    iszhuan:boolean = false

    //是否碰撞
    isPeng:boolean = false

    //声音处于打开还是关闭
    shaichevoiceOnOrOff:boolean = true

    //当前选择的车的图片url
    Onshaichecar:string = '小红'

    //当前车的黑色
    OnCarBlack:string


    //画线
    onhuashaichexian:boolean = false
    huashaichexian:boolean = false

    //是否点击
    onClick:boolean = false

    huaxianyuandian:cc.Node

    //是否旋转
    xuanzhuan:boolean = false

    //当前的点
    currentdian:cc.Node = null
    //是否在范围内
    onStay:boolean = false

    //可以转的最大角度
    maxrotation:number

    //用户已经拥有的车辆
    carsArray:any

    //最高分
    maxScore:number = 0


    //金币
    goldNum:number = 0

    piaoyi:boolean

    
    start () {

    }

    // update (dt) {}
}
